class C1{
    name:string;
    num:number;
    constructor(name:string,num:number) {
        this.name=name;
        this.num=num;
    }
    doSome(){
        for (let i=0;i<=this.num;i++) {
            console.log(this.name);
        }
    }
}

(()=>{


    let c1=new C1('lbl',3);
    c1.doSome();
})()